build: Make the default setting work on non-Linux Unix-like systems
authorTing-Wei Lan <lantw@src.gnome.org>
Sun, 22 Apr 2018 12:47:32 +0000 (20:47 +0800)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 23 Apr 2018 22:54:43 +0000 (18:54 -0400)
commite882db2763d2996a0b517448251e75235a4ea8f5
treec080302cb3efe8110979f0085b00fde7ed5c229d
parente6deaa3a85d46f29987df36843ffdc5f06f73a87
build: Make the default setting work on non-Linux Unix-like systems

All of the four platform-dependent backends are enabled by default. It
is usually a good default because it requires users to explicitly choose
backends they want to use. Rules in meson.build also automatically
disable unavailable backends for macOS, Windows, Linux, so users on
these 3 major platforms don't have to manually disable things when
running meson commands.

However, meson.build doesn't do the same thing for other Unix-like
systems, which is acceptable but not ideal. To make it easier to build
GTK+ on these systems, the Linux case, which enables X11 and Wayland and
disables Win32 and Quartz, is made the default for all operating systems
that are not Windows or macOS.

This commit also changes most 'host_machine.system()' calls to os_*
variables, which are easier to read and less likely to be used wrongly.
meson.build
meson_options.txt
tests/meson.build